home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1989 September
/
1989-09.d64
/
rescue pod
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
53 lines
10 rem *** rescue pod main program ****
20 :
30 rem ***** game initialization ******
40 :
50 print"[147]"chr$(8)chr$(142)
60 gosub450:fortt=1to2500:next
70 s$=" z z z "
80 fori=25076to25081step2:pokei,71:pokei+1,80:next
90 print"[147]":poke53272,27:sc=0:yy=0:re=0
100 fori=1to22:r=int(rnd(0)*30)+1:poke646,int(rnd(1)*3)+4:printmid$(s$,r,40);
110 next:print" z [159]z [144]-.-.-.-.-.-.-.-.-.-.";
120 print"[149]>>==<<;;::;:;<=>=<[129];:::;[149];:;<;:;::;:;:;;:";:(NULL)(NULL)
130 poke2023,58:poke56295,9:poke716,3:poke726,0:(NULL)4,0:(NULL)(NULL)
140 :
150 rem ****** main program loop ******
160 :
170 x=peek(700):y=peek(708):z=peek(716)
180 ifpeek(726)thenpoke726,0:gosub300:goto170
190 ifyy>225andy<55andre=1thensc=sc+10:(NULL)3:(NULL)0,-1:(NULL)0,0:gosub300
200 ifz=1thenprint"[158]"1"[151]&0] ";:goto220
210 print"[158]"z"[151]&0](";
220 ifsc>hsthenhs=sc
230 print" (\0'^[158]"sc"[151] !1_! (\0'^[158]"hs:ifz=0then350
240 ify<229orre=1orx<78orx>85then170
250 (NULL)(NULL):(NULL)4:(NULL)0:fori=56255to56235step-1:pokei,10:forj=1to100
260 next:pokei,0:(NULL)5:next:yy=y:re=1:(NULL)(NULL):goto170
270 :
280 rem *** random movement routine ***
290 :
300 fori=1to7:m=int(rnd(1)*8)+1:ifm>4thenm=-(9-m)
310 (NULL)i,m:next:yy=0:re=0:return
320 :
330 rem ***** end of game routine *****
340 :
350 (NULL)(NULL):(NULL)0:d$="":fori=1to11:d$=d$+"":next:fori=1to15:d$=d$+""
360 next:(NULL)4,1:printd$"[157][157][157][157]&#[* [_[1%? [158]+[159]*/%[158],"
370 printd$"[158]_[$^ 0)^'":fortd=0to50:next:printd$"_[$^ 0)^'":fortd=0to50:next
380 geta$:ifa$=""then370
390 ifa$="y"thengoto90
400 ifa$<>"n"then370
410 (NULL):(NULL):print"[147]":sys64738
420 :
430 rem **** introduction routine *****
440 :
450 printtab(14)"[150]rescue pod"
460 print"[159]maneuver your rescue pods to the surface";
470 print"of the small planetoid and back up while";
480 print"avoiding the treacherous asteroids. but";
490 print"be careful, you only have 3 pods at the";
500 print"beginning of your rescue attempts. use";
510 print"a joystick plugged into port number two."
520 printtab(14)"good luck!":return